<?php

namespace Front\Factory\Controller;


use Front\Controller\IndexController;
use Zend\ServiceManager\FactoryInterface;
use Zend\ServiceManager\ServiceLocatorInterface;

class IndexControllerFactory implements FactoryInterface
{
    public function createService(ServiceLocatorInterface $serviceLocator)
    {
        $identityService = $serviceLocator->getServiceLocator()->get('AdminIdentityManager');
        $controller = new IndexController($identityService);
        return $controller;
    }
}